import abstract from "../views/common/abstract";

import User from '@/views/setting/user.vue';
import orderList from '@/views/orders/order-list.vue';
import goodsList from '@/views/goods/goods-list.vue';

export default [
  {
    path:'/setting',
    name:'setting',
    meta: {
      name:'基本设置',
      auth:false,//该字段检验是否必须登录才可以查看
      icon:'el-icon-setting',//存放图标
    },
    component: abstract,
    children: [
      {
        path:'user',
        name:'user',
        meta:{
          name:'个人中心',
          auth:false,
          icon: '',
        },
        component:User,
      }
    ]
  },
  {
    path:'/goods',
    name:'goods',
    meta:{
      name:'商品管理',
      auth:false,
      icon:'el-icon-picture',
    },
    component:abstract,
    children:[
      {
        path:'list',
        name:'goodslist',
        meta:{
          name:'商品列表',
          auth:false,
          icon:'',
        },
        component:goodsList,
      }
    ]
  },
  {
    path:'/orders',
    name:'oders',
    meta:{
      name:'订单管理',
      auth:false,
      icon:'el-icon-data',
    },
    component:abstract,
    children:[
      {
        path:'list',
        name:'orderslist',
        meta:{
          name:'订单列表',
          auth:false,
          icon:'',
        },
        component:orderList,
      }
    ]
  },
]
